﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmailSender1.aspx.cs" Inherits="LDSP.UI.Admin.EmailSender1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link type="text/css" href="../../Styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../Scripts/calendar.js"></script>
    <title>企业列表</title>
    <script type="text/javascript">
        $(function () {
            $('#grd_list :checkbox').each(function () {
                $(this).bind("click", function () {
                    CheckDocIDs("hid_docIDs", "grd_list", "docid", this);
                })
            });
        });
    </script>
    <style type="text/css">
        .style1
        {
            width: 67px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hid_docIDs" runat="server" />
    <div>
        <div class="mngTitle">
            <span class="mngEmphasis">企业列表</span>
            <asp:Label ID="TotalRecords" runat="server" Text="Label" CssClass="searchResultLabel"></asp:Label>
        </div>
        <fieldset>
            <legend>查询</legend>
            <table id="filterArea" class="mngDetail">
                <tr>
                    <td class="itemLabel">
                        企业名称：
                    </td>
                    <td class="itemValue">
                        <asp:TextBox ID="txt_code" runat="server" CssClass="itemCtrl"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        行业：
                    </td>
                    <td class="itemValue">
                        <asp:DropDownList ID="ddl_industry" runat="server" CssClass="itemCtrl">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        &nbsp;
                    </td>
                    <td class="itemValue">
                        <asp:DropDownList ID="ddl_pageSize" runat="server" OnSelectedIndexChanged="ddl_pageSize_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:Button ID="btn_filter_enterprise" runat="server" Text="搜索" 
                            OnClick="btn_search_Click" CssClass="mngBtn" CausesValidation="False" />&nbsp;
                        <input type="button" value="重置" onclick="resetFilterCondition('filterArea')" class="mngBtn" />
                        <asp:TextBox ID="txt_address" runat="server" CssClass="itemCtrl" 
                            Visible="False"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </fieldset>
        <div class="mngList">
            <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有查到任何数据！"
                DataKeyNames="id" OnRowCommand="grd_list_RowCommand" OnRowDataBound="grd_list_RowDataBound"
                BackColor="#666699" BorderColor="#999999" AllowPaging="true" AllowSorting="true"
                CellPadding="3" GridLines="Vertical" Width="100%" OnPageIndexChanging="grd_list_PageIndexChanging"
                OnSorting="grd_list_Sorting">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                <EmptyDataRowStyle BorderStyle="None" BorderWidth="0px" Font-Bold="True" Font-Size="16pt"
                    ForeColor="white" />
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chb" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="序号" ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                    </asp:BoundField>
                    <asp:BoundField HeaderText="行业" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">
                    </asp:BoundField>
                    <asp:BoundField DataField="code" HeaderText="企业名称" SortExpression="code" ItemStyle-Width="150px">
                    </asp:BoundField>
                    <asp:BoundField DataField="contact" HeaderText="联系人" SortExpression="contact" ItemStyle-Width="100px">
                    </asp:BoundField>
                    <asp:BoundField DataField="email" HeaderText="电子邮件" SortExpression="email" ItemStyle-Width="130px">
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="#DCDCDC" />
            </asp:GridView>
        </div>
    </div>
    <table style="height: 97px; width: 100%">
        <tr>
            <td class="style1">
                邮件标题：
            </td>
            <td>
                <asp:TextBox ID="txt_Title" runat="server" Height="18px" Width="100%" CssClass="itemCtrl"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                附件名称：
            </td>
            <td>
                <asp:TextBox ID="txt_Attachment" runat="server" Height="18px" Width="100%" CssClass="itemCtrl"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                邮件正文：
            </td>
            <td>
                <asp:TextBox ID="txt_Content" runat="server" Height="69px" Width="100%" 
                    CssClass="itemCtrl" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
    </table>
    <asp:CheckBox ID="chkIncludeFile" runat="server" Text="带附件发送" />
    <asp:Button ID="btn_Send" runat="server" Text="发送邮件" onclick="btn_Send_Click" 
        Width="71px" CausesValidation="False" />
    </form>
</body>
</html>
